export default {
  methods: {
    // 返回
    handleBack() {
      // this.$router.push(`/contractManagement/contractTakeEffect/item-list`);
      this.$router.go(-1);
      this.nextIsTrue();
    },

    // 按钮切换
    tabBtnChange({ value }) {
      this.isFocus = value;
      if (value === "baseInfo") {
        document.documentElement.scrollTop = 0;
      } else {
        this.$refs[value].$el.scrollIntoView({
          behavior: "smooth", // 平滑过渡
          block: "start" // 上边框与视窗顶部平齐。默认值
        });
      }
    },

    nextIsTrue() {
      this.$nextTick(() => {
        this.isTrue = false;
        this.activeName = "first";
      });
    }
  }
};
